import React, { Component } from 'react';

interface IProps {
  title: string;
  cb: () => void;
}

interface IState {}
export default class Navbar extends Component<IProps, IState> {
  render() {
    return (
      <div>
        Navbar-{this.props.title}
        <button
          onClick={() => {
            this.props.cb();
          }}
        >
          click
        </button>
      </div>
    );
  }
}
